call ..\conf.cmd

set SDK_DIR=C:\Nokia\Devices\Nokia_6131_NFC_SDK_1_1
set LIB_DIR=%SDK_DIR%\lib

set SDK_LIBS=%LIB_DIR%\cldcapi11.zip;%LIB_DIR%\midpapi20.zip;%LIB_DIR%\ext\bluetooth.zip;%LIB_DIR%\ext\irdaobex.zip

set PREVERIFY=%SDK_DIR%\bin\preverify

set JAVA_HOME=c:\clone\job\jdk1.4
set JAVA_FILES=src\*.java

set JAVA_LIB=%JAVA_HOME%\src.zip

set JAVAC=%JAVA_HOME%\bin\javac
set JAR=%JAVA_HOME%\bin\jar

if not exist tmpclasses md tmpclasses
if not exist classes md classes

%JAVAC% -target 1.4 -source 1.3 -classpath %JAVA_LIB%;%SDK_LIBS%;tmpclasses;. -d tmpclasses %JAVA_FILES%

%PREVERIFY% -classpath %SDK_LIBS%;tmpclasses -d classes tmpclasses

%JAR% cmf MANIFEST.MF %APPLET%.jar -C classes .

if exist ..\res %JAR% uf %APPLET%.jar -C ..\res .

for %%I in (%APPLET%.jar) do set SZ=%%~zI

type MANIFEST.MF >%APPLET%.jad
echo MIDlet-Jar-Size: %SZ% >>%APPLET%.jad
echo MIDlet-Jar-URL: %APPLET%.jar >>%APPLET%.jad
